package org.jeecg.modules.backstagehome.service.impl;

import org.jeecg.modules.backstagehome.mapper.BackstageHomeMapper;
import org.jeecg.modules.backstagehome.service.IBackstageHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class BackstageHomeServiceImpl implements IBackstageHomeService {

    @Autowired
    BackstageHomeMapper backstageHomeMapper;

    /**
     * 获取用户总数量
     * @return sum
     */
    @Override
    public int sumNumber() {
        int sum = backstageHomeMapper.sumNumber();
        return sum;
    }

    @Override
    public int thisMonthSum(String firstday, String lastday) {
        return backstageHomeMapper.thisMonthSum(firstday,lastday);
    }
}
